package money.pot.app;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class MoneyPotApp<Button> extends Activity {
    /** Called when the activity is first created. */
		
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.view01);   
        
        
        @SuppressWarnings("unchecked")
		final Button button1 = (Button) findViewById(R.id.button1); // Start Application
        ((View) button1).setOnClickListener(new View.OnClickListener() {
            @Override
			public void onClick(View v) {
                setContentView(R.layout.view02);                
                @SuppressWarnings("unchecked")
        		final Button button1 = (Button) findViewById(R.id.button1); // Create New Group
                ((View) button1).setOnClickListener(new View.OnClickListener() {
                    @Override
					public void onClick(View v) {
                        setContentView(R.layout.view03);
                                          
                    }
                }); //button
                
                @SuppressWarnings("unchecked")
        		final Button button2 = (Button) findViewById(R.id.button2); // Use Existing Group
                ((View) button2).setOnClickListener(new View.OnClickListener() {
                    @Override
					public void onClick(View v) {
                        setContentView(R.layout.view04);
                        @SuppressWarnings("unchecked")
                		final Button button2 = (Button) findViewById(R.id.EditGroupButton); // Edit Group
                        ((View) button2).setOnClickListener(new View.OnClickListener() {
                            @Override
        					public void onClick(View v) {
                                setContentView(R.layout.view05);
                            }
                        }); //button
                        
                    }
                }); //button
                        
            }
        }); //button
    }
}